package com.bskj.bms.service;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.bskj.bms.bean.req.ShopListReqVo;
import com.bskj.bms.bean.req.ShopReqVo;
import com.bskj.common.bean.model.CodeValue;
import com.bskj.common.bean.model.ParkingShop;
import com.bskj.common.dao.core.Page;
import com.bskj.common.service.IBaseService;

/**
 * 
 * @author wangliming
 * @date 2018年5月9日 下午4:41:45
 */
public interface IBmsShopService extends IBaseService<ParkingShop>{
	/**
	 * 查询出所有商铺的类型
	 * @return
	 * @throws Exception
	 */
	public List<CodeValue> findShopType() throws Exception;
	
	/**
	 *添加车场的商店用户信息
	 * @param req
	 * @return
	 */
	@Transactional(rollbackFor = Exception.class)
	public Map<String, Object> addShop(ShopReqVo req);
	
	/**
	 * 根据停车场ID查找每个停车场的所有商店
	 * @param custId
	 * @return
	 * @throws Exception
	 */
	public Page<ParkingShop> findAllShop(ShopListReqVo req)throws Exception;
	
	/**
	 * 根据手机号码找寻某家商店的信息
	 * @param phone
	 * @return
	 * @throws Exception
	 */
	public ParkingShop findShopData(Integer shopId)throws Exception;
	
	/**
	 * 修改商家的信息
	 * @param req
	 * @return
	 */
	public  Map<String, Object> updateShop(ShopReqVo req);
	
	void delRule(Integer bmsId)throws Exception;
}
